package com.wjk.easy;

import android.annotation.SuppressLint;


import com.clj.fastble.BleManager;

import org.litepal.LitePalApplication;

public class EasyApplication extends LitePalApplication {
    @SuppressLint("StaticFieldLeak")
    private static EasyApplication mContext;
    private static BleManager mClient;
    public EasyApplication() {
        super();
    }
    @Override
    public void onCreate() {
        super.onCreate();
        mContext = this;

    }
    public static BleManager getBluetoothClient(){
        if(mClient==null){
            mClient = BleManager.getInstance();
        }
        return mClient;
    }
    public static EasyApplication getAppContext() {
        return mContext;
    }
}
